import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: zhongyisheng
 * Date: 2024-05-27
 * Time: 21:24
 */
public class Test {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        String[] tmp = str.split(" ");
        int t= tmp.length-1;
        System.out.println(tmp[t]);
    }
}
